package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceReasonstopMapper;
import com.ruoyi.service.domain.ServiceReasonstop;
import com.ruoyi.service.service.IServiceReasonstopService;

/**
 * 订单关闭原因表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServiceReasonstopServiceImpl implements IServiceReasonstopService 
{
    @Autowired
    private ServiceReasonstopMapper serviceReasonstopMapper;

    /**
     * 查询订单关闭原因表
     * 
     * @param reasonId 订单关闭原因表主键
     * @return 订单关闭原因表
     */
    @Override
    public ServiceReasonstop selectServiceReasonstopByReasonId(Long reasonId)
    {
        return serviceReasonstopMapper.selectServiceReasonstopByReasonId(reasonId);
    }

    /**
     * 查询订单关闭原因表列表
     * 
     * @param serviceReasonstop 订单关闭原因表
     * @return 订单关闭原因表
     */
    @Override
    public List<ServiceReasonstop> selectServiceReasonstopList(ServiceReasonstop serviceReasonstop)
    {
        return serviceReasonstopMapper.selectServiceReasonstopList(serviceReasonstop);
    }

    /**
     * 新增订单关闭原因表
     * 
     * @param serviceReasonstop 订单关闭原因表
     * @return 结果
     */
    @Override
    public int insertServiceReasonstop(ServiceReasonstop serviceReasonstop)
    {
        return serviceReasonstopMapper.insertServiceReasonstop(serviceReasonstop);
    }

    /**
     * 修改订单关闭原因表
     * 
     * @param serviceReasonstop 订单关闭原因表
     * @return 结果
     */
    @Override
    public int updateServiceReasonstop(ServiceReasonstop serviceReasonstop)
    {
        return serviceReasonstopMapper.updateServiceReasonstop(serviceReasonstop);
    }

    /**
     * 批量删除订单关闭原因表
     * 
     * @param reasonIds 需要删除的订单关闭原因表主键
     * @return 结果
     */
    @Override
    public int deleteServiceReasonstopByReasonIds(Long[] reasonIds)
    {
        return serviceReasonstopMapper.deleteServiceReasonstopByReasonIds(reasonIds);
    }

    /**
     * 删除订单关闭原因表信息
     * 
     * @param reasonId 订单关闭原因表主键
     * @return 结果
     */
    @Override
    public int deleteServiceReasonstopByReasonId(Long reasonId)
    {
        return serviceReasonstopMapper.deleteServiceReasonstopByReasonId(reasonId);
    }
}
